package com.jfzt.hgroup.exception;


import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 异常基类
 * @author erxiang.chen
 * @Date: 2024/4/12 11:30
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class BaseException extends RuntimeException {
    private String code;

    public BaseException() {
        super();
    }

    public BaseException(String msg) {
        super(msg);
    }

    public BaseException(Integer code, String msg) {
        super(msg);
        this.code = String.valueOf(code);
    }
    public BaseException(String code, String msg) {
        super(msg);
        this.code = code;
    }

    public BaseException(String msg, Throwable e) {
        super(msg, e);
    }

    public BaseException(Throwable cause) {
        super(cause);
    }
}

